/*
* pps-cloud
*/
package com.pitop.succedaneum.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.pitop.succedaneum.entity.SuccedaneumMaterial;

/**
 * 可替代料材 api请求熔断器
 * @author berton
 */
@FeignClient(value = "berton-provider", fallback = SuccedaneumMaterialFeignApiImpl.class)
public interface SuccedaneumMaterialFeignApi {
    /**
     * 查询SuccedaneumMaterial一个详情信息
     * @param id id
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/succedaneumMaterial/load")
    SuccedaneumMaterial load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询SuccedaneumMaterial一个详情信息
     *
     * @param id id
     * @return BeanRet
     */
    @GetMapping(value = "/succedaneumMaterial/load/id/{id}")
    SuccedaneumMaterial loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询SuccedaneumMaterial一个详情信息
     *
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/succedaneumMaterial/load/code/{code}")
    SuccedaneumMaterial loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除SuccedaneumMaterial
     *
     * @return BeanRet
     */
    @DeleteMapping("/succedaneumMaterial/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询SuccedaneumMaterial信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/succedaneumMaterial/list")
    List<SuccedaneumMaterial> list(@RequestBody SuccedaneumMaterial succedaneumMaterial,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询SuccedaneumMaterial信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/succedaneumMaterial/list/by")
    List<SuccedaneumMaterial> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计SuccedaneumMaterial信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/succedaneumMaterial/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计SuccedaneumMaterial信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/succedaneumMaterial/count")
    Integer count(@RequestBody SuccedaneumMaterial succedaneumMaterial);



    /**
     * 创建SuccedaneumMaterial
     *
     * @return BeanRet
     */
    @PostMapping("/succedaneumMaterial/build")
    SuccedaneumMaterial build(@RequestBody SuccedaneumMaterial succedaneumMaterial);


    /**
     * 修改SuccedaneumMaterial
     *
     * @return BeanRet
     */
    @PutMapping("/succedaneumMaterial/modify")
    SuccedaneumMaterial modify(@RequestBody SuccedaneumMaterial succedaneumMaterial);



}
